import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import toastr from 'toastr'

import 'animate.css'

import "./assets/css/index.css" 
import "toastr/build/toastr.min.css"

import API from "./api";

// 阻止重复提示
toastr.options.preventDuplicates = true;

const app = createApp(App)

// 挂载接口
app.config.globalProperties.$api = API ;

// 将 toastr 挂载到 vue 全局属性中
app.config.globalProperties.$toastr = toastr ;

app.use(createPinia())
app.use(router)

app.mount('#app')
